module.exports = {
  format(distance) {
    if (distance && distance !== '') {
      const value = distance / 1000;
      return value >= 1 ? value.toFixed(1) + "km" : distance + "m";
    }
  }
}
